package cn.initcap.concurrency.classloader;

import java.util.Objects;

/**
 * @author initcap
 * @date Created in 2018/7/27 PM1:54.
 */
public class AutoBoxing {

    public static void main(String[] args) {
        Integer a = 1;
        Integer b = 2;
        Integer c = 3;
        Integer d = 3;
        Integer e = 321;
        Integer f = 321;
        String j = "a";
        String k = "b";
        String l = j + k;
        Long g = 3L;
        System.out.println(Objects.equals(c, d));
        System.out.println(Objects.equals(e, f));
        System.out.println(c == (a + b));
        System.out.println(c.equals(a + b));
        System.out.println(g == (a + b));
        System.out.println(g.equals(a + b));
    }

}
